package com.edu.dao;

import com.edu.data.News;

import java.util.List;

public interface NewsMapper {
    int deleteByPrimaryKey(Integer enId);

    int insert(News record);

    int insertSelective(News record);

    News selectByPrimaryKey(Integer enId);

    int updateByPrimaryKeySelective(News record);

    int updateByPrimaryKey(News record);

    List<News> getAllNews();

    List<News> getlist();

    void delect(int id);

    void add(News news);

    News select(int id);

    void update(News news);
}